#ifndef __PIECE_HPP__
#define __PIECE_HPP__

#define DIR_RIGHT 0;
#define DIR_LEFT  1;
#define DIR_TOP   2;
#define DIR_DOWN  3;

#define RISK_FREE      0;
#define RISK_WARNING   1;
#define RISK_CHECKMATE 2;

#define PIECE_PAWN   0;
#define PIECE_KNIGHT 1;
#define PIECE_ROOK   2;
#define PIECE_BISHOP 3;
#define PIECE_QUEEN  4;
#define PIECE_KING   5;

struct Piece {
    int x;
    int y;
    int type;
    int risk;
    int last_dir;
};

#endif
